<template>
  <div id="app">
    <router-view :Data = 'Data' ></router-view>
    <!-- <logo></logo> -->
    <!-- <Nav></Nav> -->
  </div>
</template>
<script>
// import Nav from './components/Nav'
// import login from './components/login'
export default {
  data () {
    return {
      Data:{}
    }
  },
  mounted() {
  //浏览器关闭删除token
  window.addEventListener('beforeunload',()=>{
            localStorage.removeItem('token');
        });
  },
  created() {
      // let user = sessionStorage.getItem('userUnionId')
      // this.$api.Loginlogout.user(user).then(res => {
      //    sessionStorage.setItem('user', JSON.stringify(res.data))
      //    this.Data = JSON.parse(sessionStorage.getItem('user'))
      // })
  },
  computed: {
  },
  components:{
  }
}
</script>
<style scoped>
 #app{
   height:100%;
   width:100%;
 }
</style>
